/*
*Author:Jackong
*Date:2012/07/05
*Description: conn_information of the connnection(decouple from connection)
*/
#pragma once
namespace fly {

	namespace jld{

		namespace server {	
			class conn_info
			{
			private:
				size_t proof_index_;
				__int64 rtt_;
				__int64 delta_time_;
				string account_;
			public:

				conn_info();
				virtual ~conn_info();

				const size_t& add_sync_time(const __int64& rtt, const __int64& dt);
				bool cal_sync_time();
				const __int64& rtt();
				const __int64& delta_time();
				void set_account(const string& account);
				const string& account();
			};

		}
	}
}